﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SaleOrderList.aspx.cs" Inherits="Admin_Components_Customer_SaleOrderList" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:radscriptmanager id="RadScriptManager" runat="server"></telerik:radscriptmanager>
        <div class="set-btns text-center">
            <asp:Button ID="btnExportExcel" runat="server" CssClass="btn btn-sm btn-primary" Text="Xuất Excel" OnClick="btnExportExcel_Click"/>
        </div>
         <div class="row">
        <telerik:RadGrid ID="gv" runat="server" AutoGenerateColumns="False" CellSpacing="0"
            AllowMultiRowSelection="True" GridLines="None" HeaderStyle-HorizontalAlign="Center"
            HeaderStyle-BorderStyle="None" CssClass="table table-bordered" AllowPaging="true"
            PageSize="50" AllowCustomPaging="true" OnNeedDataSource="gvData_NeedDataSource">
            <MasterTableView AllowPaging="True" PageSize="50" EditMode="InPlace" ShowHeader="true"
                AutoGenerateColumns="False" NoMasterRecordsText="Không có dữ liệu.">
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="STT" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <%# Eval("RowID") %>
                    </ItemTemplate>
                    <HeaderStyle Width="50px" />
                    <ItemStyle HorizontalAlign="Center" />
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn  DataField="SaleOrderCode" UniqueName="SaleOrderCode"  ReadOnly="true" HeaderText="Số đơn hàng">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" Font-Bold ="true"/>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="SaleOrderDate" UniqueName="SaleOrderDate"  ReadOnly="true" HeaderText="Ngày mua">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="ShopName" UniqueName="ShopName"  ReadOnly="true" HeaderText="Cửa hàng">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="CustomerName" UniqueName="CustomerName"  ReadOnly="true" HeaderText="Khách hàng">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn  DataField="EmplyeeName" UniqueName="EmplyeeName"  ReadOnly="true" HeaderText="Nhân viên">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="TotalWeight" UniqueName="TotalWeight"  ReadOnly="true" HeaderText="Tổng trọng lượng" DataFormatString="{0:###,###}">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" Font-Bold ="true"/>
                </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn  DataField="DiscountAmount" UniqueName="DiscountAmount"  ReadOnly="true" HeaderText="Tiền giảm giá" DataFormatString="{0:###,###}">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left"/>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="Total" UniqueName="Total"  ReadOnly="true" HeaderText="Tổng tiền sau giảm giá" DataFormatString="{0:###,###}">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" Font-Bold ="true"/>
                </telerik:GridBoundColumn>
                 
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>
